package com.tianzehua.netty.chatexample;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;


/**
 * chat client handler
 * @author tianzehua
 * @date 2019/03/10
 */
public class MyChatClientHandler extends SimpleChannelInboundHandler<String> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, String msg)  {
        /* just print information of server */
        System.out.println(msg);
    }
}
